package com.itheima.stock.api;

import com.itheima.stock.dto.LoginDTO;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.CaptchaVO;
import com.itheima.stock.vo.LoginVO;
import org.springframework.web.bind.annotation.*;

/**
 * @author zby
 * @created 2024-06-23 15:21
 * @description 向外暴露的接口
 */
@RequestMapping(path = "/api")
public interface UserControllerAPI {

    @PostMapping(path = "/login")
    ResponseResult<LoginVO> login(@RequestBody LoginDTO dto);

    @GetMapping(path = "/captcha")
    ResponseResult<CaptchaVO> captcha();


   @GetMapping(path = "/user/test")
    String sayHello(@RequestParam("name") String name);


}
